import 'package:flutter/material.dart';
import 'package:wan_android/pages/item_artical.dart';

///收藏页面
class CollectionPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return CollectionState();
  }
}

class CollectionState extends State<CollectionPage> {
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('收藏'),
      ),
      body: Center(
        ///http://www.wanandroid.com/lg/collect/list/o/json
        child: ItemWidget(
          firApi: 'http://www.wanandroid.com/lg/collect/list/',
          secApi: '/json',
          isFavorite: true,
          isSearch: false,
        ),
      ),
    );
  }
}

///http://www.wanandroid.com/lg/collect/list/o/json
///I/flutter (13842): value : [data]={data: {curPage: 1, datas: [{author: Dogold, chapterId: 186, chapterName: 沉浸式, courseId: 13, desc: , envelopePic: , id: 24371, link: https://www.cnblogs.com/glorin/p/4962070.html, niceDate: 刚刚, origin: , originId: 3353, publishTime: 1535985572000, title: Android M如何设置状态栏图标黑白色, userId: 9937, visible: 0, zan: 0}], offset: 0, over: true, pageCount: 1, size: 20, total: 1}, errorCode: 0, errorMsg: }
String collApi = 'http://www.wanandroid.com/lg/collect/list/';
